﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="StarProfile.aspx.cs" Inherits="JohnnySins.Admin.StarProfileDetail" %>
<%@ Register TagName="FtpVideoChoise" Src="~/Controls/FtpVideoChoice.ascx" TagPrefix="john"  %>
<%@ Register TagName="CustomFileUpload" Src="~/Controls/CustomFileUpload.ascx" TagPrefix="john"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
    $(function () {
        $("#editDialogPhoto").dialog({ modal: true, autoOpen: false, width: 800, resizable: false });
        $("#editDialogPhoto").parent().appendTo(jQuery("form:first"));
        
        $("#editDialog").dialog({ modal: true, autoOpen: false, width: 800, resizable: false });
        $("#editDialog").parent().appendTo(jQuery("form:first"));
        
        $(".ui-dialog-titlebar").hide();

         <%=this.JsCodeToRunOnReady%>;
    });

    function createUpdatePhotoForm(id) {
        __doPostBack('<%= upDetailsPhoto.ClientID %>', id);
    }

    function createUpdateForm(id) {
         __doPostBack('<%= upDetailsScene.ClientID %>', id);
    }
   </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <john:FtpVideoChoise ID="ctrlFtpChoise"  runat="server" />
    <div class="page_title">
        <h1>Star Profile</h1>
    </div>

    <!--start edit profile-->
    <div class="edit_profile_panel">
        <h4><asp:Label runat="server" ID="lblDialogTitle"></asp:Label></h4>
            <asp:UpdatePanel runat="server" ID="upProfile" UpdateMode="Conditional">
            <ContentTemplate>
                        <div class="edit_profile_fields">
                            <div class="row">
                                <div class="col-sm-6 col-lg-6">                                
                                    <div class="form-group">
                                        <label for="" class="col-sm-4 col-md-4 control-label custom_label">First Name:</label>
                                        <div class="col-sm-8 col-md-8">
                                            <asp:TextBox runat="server" class="form-control" ID="txtFirstName" ValidationGroup="newItem"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="txtFirstName"
                                                runat="server" Text="*" ValidationGroup="newItem" ForeColor="Red" Display="Dynamic" />
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label for="" class="col-sm-4 col-md-4 control-label custom_label">Last Name:</label>
                                        <div class="col-sm-8 col-md-8">
                                            <asp:TextBox runat="server" class="form-control" ID="txtLastName" ValidationGroup="newItem"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtLastName"
                                                runat="server" Text="*" ValidationGroup="newItem" ForeColor="Red" Display="Dynamic" />
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label for="" class="col-sm-4 col-md-4 control-label custom_label">Gender:</label>
                                        <div class="col-sm-8 col-md-8">
                                            <asp:DropDownList CssClass="form-control" ID="ddlGender" runat="server">
                                                <asp:ListItem Text="Male" Value="Male"/>
                                                <asp:ListItem Text="Female" Value="Female"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label for="" class="col-sm-4 col-md-4 control-label custom_label">Ethnicity:</label>
                                        <div class="col-sm-8 col-md-8">
                                            <asp:TextBox runat="server" class="form-control" ID="txtEthnicity"></asp:TextBox>
                                        </div>
                                    </div>
                                    
                                    <div class="form-group">
                                        <label for="" class="col-sm-4 col-md-4 control-label custom_label">Country of Origin:</label>
                                        <div class="col-sm-8 col-md-8">
                                            <asp:TextBox runat="server" class="form-control" ID="txtCountryOfOrigin"></asp:TextBox>
                                        </div>
                                    </div>
                                    
                                    <div class="form-group">
                                        <label for="" class="col-sm-4 col-md-4 control-label custom_label">Province / State:</label>
                                        <div class="col-sm-8 col-md-8">
                                            <asp:TextBox runat="server" class="form-control" ID="txtState"></asp:TextBox>
                                        </div>
                                    </div>
                                    
                                    <div class="form-group">
                                        <label for="" class="col-sm-4 col-md-4 control-label custom_label">Place of Birth:</label>
                                        <div class="col-sm-8 col-md-8">
                                            <asp:TextBox runat="server" class="form-control" ID="txtPlaceOfBirth"></asp:TextBox>
                                        </div>
                                    </div>
                                    
                                    <div class="form-group">
                                        <label for="" class="col-sm-4 col-md-4 control-label custom_label">City:</label>
                                        <div class="col-sm-8 col-md-8">
                                            <asp:TextBox runat="server" class="form-control" ID="txtCity"></asp:TextBox>
                                        </div>
                                    </div>
                                    
                                    <div class="form-group">
                                        <label for="" class="col-sm-4 col-md-4 control-label custom_label">Date of Birth:</label>
                                        <div class="col-sm-8 col-md-8">
                                            <asp:TextBox runat="server" class="form-control" ID="txtDateOfBirth"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                
                                <div class="col-sm-6 col-lg-6">                                	
                                    <div class="form-group">
                                        <label for="" class="col-sm-4 col-md-4 control-label custom_label">Eye Color:</label>
                                        <div class="col-sm-8 col-md-8">
                                            <asp:TextBox runat="server" class="form-control" ID="txtEyeColor"></asp:TextBox>
                                        </div>
                                    </div>
                                                                        
                                    <div class="form-group">
                                        <label for="" class="col-sm-4 col-md-4 control-label custom_label">Hair Color:</label>
                                        <div class="col-sm-8 col-md-8">
                                            <asp:TextBox runat="server" class="form-control" ID="txtHairColor"></asp:TextBox>
                                        </div>
                                    </div>
                                    
                                    <div class="form-group">
                                        <label for="" class="col-sm-4 col-md-4 control-label custom_label">Heigth:</label>
                                        <div class="col-sm-8 col-md-8">
                                            <asp:TextBox runat="server" class="form-control" ID="txtHeight"></asp:TextBox>
                                        </div>
                                    </div>
                                    
                                    <div class="form-group">
                                        <label for="" class="col-sm-4 col-md-4 control-label custom_label">Weight:</label>
                                        <div class="col-sm-8 col-md-8">
                                            <asp:TextBox runat="server" class="form-control" ID="txtWeight"></asp:TextBox>
                                        </div>
                                    </div>
                                    
                                    <div class="form-group">
                                        <label for="" class="col-sm-4 col-md-4 control-label custom_label">My Twitter:</label>
                                        <div class="col-sm-8 col-md-8">
                                            <asp:TextBox runat="server" class="form-control" ID="txtMyTwitter"></asp:TextBox>
                                        </div>
                                    </div>
                                    
                                    <div class="form-group">
                                        <label for="" class="col-sm-4 col-md-4 control-label custom_label">Website Twitter:</label>
                                        <div class="col-sm-8 col-md-8">
                                            <asp:TextBox runat="server" class="form-control" ID="txtWebsiteTwitter"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                
                            </div>                            
                            
                        </div>
                        
                        <div class="button_group">
                            <asp:Button CssClass="btn btn-success" ID="btnSaveProfile" ValidationGroup="newItem"
                                Text="Save" runat="server" OnClick="btnSaveProfile_Click" />
                            <asp:Button CssClass="btn btn-info" ID="btnCancelProfile" Text="Cancel" runat="server"
                                OnClick="btnCancelProfile_Click" />
                        </div>
            </ContentTemplate>
            <Triggers>
               <asp:PostBackTrigger ControlID="btnSaveProfile" />
               <asp:AsyncPostBackTrigger ControlID="btnCancelProfile" EventName="Click" />
            </Triggers>
         </asp:UpdatePanel>
                        
    </div>
    <!--end edit profile-->

    <!--start tabel photos conetnt-->
    <div class="admin_table_container">
        <asp:UpdatePanel ID="upPhoto" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <h3>Profile Photos</h3>
            <div class="table-responsive">
               <asp:GridView ID="gridPhoto" AutoGenerateColumns="false" runat="server" CssClass="table table-bordered table-hover"
                  AllowPaging="False" PageSize="20" OnRowDataBound="gridPhoto_RowDataBound" OnRowCommand="gridPhoto_Command">
                  <PagerSettings Mode="Numeric" PageButtonCount="4" NextPageText=">" PreviousPageText="<"
                     FirstPageText="<<" LastPageText=">>" />
                  <Columns>
                     <asp:TemplateField>
                        <HeaderTemplate>
                           <asp:CheckBox ID="chbAllPhoto" runat="server" AutoPostBack="true" OnCheckedChanged="chbAllPhoto_CheckChanged" />
                        </HeaderTemplate>
                        <ItemTemplate>
                           <asp:HiddenField ID="hidId" Value='<%#Eval("StarProfilePhotoId")%>' runat="server" />
                           <asp:CheckBox runat="server" Checked='<%#Eval("Selected")%>' ID="cbSelectedPhoto" />
                        </ItemTemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="Title/Description">
                        <ItemTemplate>
                           <asp:Label ID="lblStarProfilePhotoTitle" Text='<%# Eval("StarProfilePhotoTitle") %>' runat="server" />
                        </ItemTemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="Profile File">
                        <ItemTemplate>
                           <asp:Label ID="lblStarProfilePhotoFileName" Text='<%# Eval("StarProfilePhotoFileName") %>'
                              runat="server" />
                        </ItemTemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="Status">
                        <ItemTemplate>
                           <asp:Label ID="lblStatus" Text='<%# Eval("Status") %>' runat="server" />
                        </ItemTemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="Action">
                        <ItemTemplate>
                           <a href='javascript:void(0)' onclick="javascript:createUpdatePhotoForm(<%#Eval("StarProfilePhotoId")%>);">
                              <img src="<%=ResolveClientUrl("~") %>images/admin/action_icon/edit_icon.png" alt="" title="Edit"
                                 border="0" />
                           </a>
                           <asp:ImageButton runat="server" ImageUrl="~/images/admin/action_icon/delete_icon.gif" ToolTip="Delete"
                              Style="vertical-align: middle;" ID="lbtnDelete" OnCommand="gridPhoto_Command" CommandName="delete"
                              CommandArgument='<%# Eval("StarProfilePhotoId")%>' OnClientClick="return confirm('Please confirm if you want to delete photo')" />
                           <asp:ImageButton ID="btnDeactivate" OnCommand="gridPhoto_Command" ToolTip="Deactivate"
                              Style="vertical-align: middle;" CommandName="deactivate" CommandArgument='<%# Eval("StarProfilePhotoId")%>'
                              runat="server" OnClientClick="return confirm('Please confirm if you want to deactivate photo')"
                              ImageUrl="~/images/admin/action_icon/deactive.png" />
                           <asp:ImageButton ID="btnActivate" OnCommand="gridPhoto_Command" ToolTip="Activate" Style="vertical-align: middle;"
                              CommandName="activate" CommandArgument='<%# Eval("StarProfilePhotoId")%>' runat="server"
                              OnClientClick="return confirm('Please confirm if you want to activate photo')"
                              ImageUrl="~/images/admin/action_icon/logout.png" />
                        </ItemTemplate>
                     </asp:TemplateField>
                  </Columns>
               </asp:GridView>
            </div>
            <div class="button_group">
                <div class="row">
                    <div class="col-sm-6 col-lg-6">
                       <asp:Button CssClass="btn btn-default" ID="btnDeleteSelectedPhoto" OnClientClick="return confirm('Please confirm if you want to delete selected photos')"
                          Text="Delete SelectedPhoto" runat="server" OnClick="btnDeleteSelectedPhoto_Click" />
                       <asp:Button CssClass="btn btn-default" ID="btnActivateSelectedPhoto" OnClientClick="return confirm('Please confirm if you want to activate selected photos')"
                          Text="Activate SelectedPhoto" runat="server" OnClick="btnActivateSelectedPhoto_Click" />
                       <asp:Button CssClass="btn btn-default" ID="btnDeactivateSelectedPhoto" OnClientClick="return confirm('Please confirm if you want to deactivate selected photos')"
                          Text="Deactivate SelectedPhoto" runat="server" OnClick="btnDeactivateSelectedPhoto_Click" />
                    </div>
                    <div class="col-sm-6 col-lg-6">
                       <asp:Button CssClass="btn btn-default" ID="btnReverseSelectedPhoto" Text="Reverse Selected"
                          runat="server" OnClick="btnReverseSelectedPhoto_Click" />
                       <asp:Button CssClass="btn btn-default" ID="btnPhotoUpload" Text="Upload New"
                          runat="server" OnClientClick="createUpdatePhotoForm(-1); return false;" />
                    </div>
                </div>
            </div>
        </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <!--end tabel photos conetnt-->

    <!--start tabel scenes conetnt-->
    <div class="admin_table_container">
        <h3>Scenes</h3>
        <asp:UpdatePanel ID="upScene" runat="server" UpdateMode="Conditional">
         <ContentTemplate>
            <div class="table-responsive">
               <asp:GridView ID="grid" AutoGenerateColumns="false" runat="server" CssClass="table table-bordered table-hover"
                  AllowPaging="False" PageSize="20" OnRowDataBound="grid_RowDataBound" OnRowCommand="grid_Command">
                  <PagerSettings Mode="Numeric" PageButtonCount="4" NextPageText=">" PreviousPageText="<"
                     FirstPageText="<<" LastPageText=">>" />
                  <Columns>
                     <asp:TemplateField>
                        <HeaderTemplate>
                           <asp:CheckBox ID="chbAll" runat="server" AutoPostBack="true" OnCheckedChanged="chbAll_CheckChanged" />
                        </HeaderTemplate>
                        <ItemTemplate>
                           <asp:HiddenField ID="hidId" Value='<%#Eval("StarProfileSceneId")%>' runat="server" />
                           <asp:CheckBox runat="server" Checked='<%#Eval("Selected")%>' ID="cbSelected" />
                        </ItemTemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="Title/Description">
                        <ItemTemplate>
                           <asp:Label ID="lblStarProfileSceneTitle" Text='<%# Eval("StarProfileSceneTitle") %>' runat="server" />
                        </ItemTemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="Preview Video">
                        <ItemTemplate>
                           <asp:Label ID="lblPreviewFileName" Text='<%# Eval("PreviewFileName") %>' runat="server" />
                        </ItemTemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="HD Win Video File">
                        <ItemTemplate>
                           <asp:Label ID="lblHDWinFileName" Text='<%# Eval("HDWinFileName") %>' runat="server" />
                        </ItemTemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="LD Win Video File">
                        <ItemTemplate>
                           <asp:Label ID="lblLDWinFileName" Text='<%# Eval("LDWinFileName") %>' runat="server" />
                        </ItemTemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="HD QT Video File">
                        <ItemTemplate>
                           <asp:Label ID="lblHDQTFileName" Text='<%# Eval("HDQTFileName") %>' runat="server" />
                        </ItemTemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="LD QT Video File">
                        <ItemTemplate>
                           <asp:Label ID="lblLDQTFileName" Text='<%# Eval("LDQTFileName") %>' runat="server" />
                        </ItemTemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="Status">
                        <ItemTemplate>
                           <asp:Label ID="lblStatus" Text='<%# Eval("Status") %>' runat="server" />
                        </ItemTemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="Action">
                        <ItemTemplate>
                           <a href='javascript:void(0)' onclick="javascript:createUpdateForm(<%#Eval("StarProfileSceneId")%>);">
                              <img src="<%=ResolveClientUrl("~") %>images/admin/action_icon/edit_icon.png" alt="" title="Edit" border="0" />
                           </a>
                           <asp:ImageButton runat="server" ImageUrl="~/images/admin/action_icon/delete_icon.gif" ToolTip="Delete"
                              Style="vertical-align: middle;" ID="lbtnDelete" OnCommand="grid_Command" CommandName="delete"
                              CommandArgument='<%# Eval("StarProfileSceneId")%>' OnClientClick="return confirm('Please confirm if you want to delete scene')" />
                           <a href="#"><img border="0" title="Preview" alt="cancle" src="<%=ResolveClientUrl("~") %>images/admin/action_icon/preview_icon.png"></a>
                           <asp:ImageButton ID="btnDeactivate" OnCommand="grid_Command" ToolTip="Deactivate"
                              Style="vertical-align: middle;" CommandName="deactivate" CommandArgument='<%# Eval("StarProfileSceneId")%>'
                              runat="server" OnClientClick="return confirm('Please confirm if you want to deactivate scene')"
                              ImageUrl="~/images/admin/action_icon/deactive.png" />
                           <asp:ImageButton ID="btnActivate" OnCommand="grid_Command" ToolTip="Activate" Style="vertical-align: middle;"
                              CommandName="activate" CommandArgument='<%# Eval("StarProfileSceneId")%>' runat="server"
                              OnClientClick="return confirm('Please confirm if you want to activate scene')"
                              ImageUrl="~/images/admin/action_icon/logout.png" />
                        </ItemTemplate>
                     </asp:TemplateField>
                  </Columns>
               </asp:GridView>
            </div>
         </ContentTemplate>
      </asp:UpdatePanel>

      <div class="button_group">
        <div class="row">
            <div class="col-sm-6 col-lg-6">
                                    <asp:Button CssClass="btn btn-default" ID="btnDeleteSelectedVideo" OnClientClick="return confirm('Please confirm if you want to delete selected videos')"
                                        Text="Delete Selected" runat="server" OnClick="btnDeleteSelectedVideo_Click" />
                                    <asp:Button CssClass="btn btn-default" ID="btnActivateSelectedVideo" OnClientClick="return confirm('Please confirm if you want to activate selected videos')"
                                        Text="Activate Selected" runat="server" OnClick="btnActivateSelectedVideo_Click" />
                                    <asp:Button CssClass="btn btn-default" ID="btnDeactivateSelectedVideo" OnClientClick="return confirm('Please confirm if you want to deactivate selected videos')"
                                        Text="Deactivate Selected" runat="server" OnClick="btnDeactivateSelectedVideo_Click" />
                                    <asp:Button CssClass="btn btn-default" ID="btnCopyToHomeSelectedVideo" OnClientClick="return confirm('Please confirm if you want to copy selected videos on home page')"
                                        Text="Add Selected to Home Page" runat="server" OnClick="btnCopyToHomeSelectedVideo_Click" Visible="false" />
                                    
            </div>
            <div class="col-sm-6 col-lg-6">
                                    <asp:Button CssClass="btn btn-default" ID="btnReverseSelectedVideo" Text="Reverse Selected"
                                        runat="server" OnClick="btnReverseSelectedVideo_Click" />
                                    <asp:Button CssClass="btn btn-default" ID="btnSceneUpload" Text="Upload New"
                                        runat="server" OnClientClick="createUpdateForm(-1); return false;" />
            </div>
        </div>                            	
      </div>
    </div>
    <!--end tabel scenes conetnt-->

    <div id="editDialogPhoto">
      <asp:UpdatePanel runat="server" ID="upDetailsPhoto" OnLoad="upDetailsPhoto_Load" UpdateMode="Conditional">
         <ContentTemplate>
            <div>
               <div class="fieldset_block col-lg-12 page_area">
                  <fieldset>
                     <legend>
                        <h4>
                           <asp:Label runat="server" ID="lblDialogPhotoTitle"></asp:Label></h4>
                     </legend>
                     <asp:Label runat="server" ID="hdIdPhoto" Style="display: none;" />
                     <div class="fieldset_cotent form-horizontal">
                        <div class="row">
                           <div class="col-lg-12">
                              <div class="form-group">
                                 <label class="col-lg-4 control-label">
                                    Title/Description</label>
                                 <div class="col-lg-8">
                                    <asp:TextBox CssClass="form-control" placeholder="Title/Description" ID="txtStarProfilePhotoTitle"
                                       ValidationGroup="newItemPhoto" runat="server" />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtStarProfilePhotoTitle"
                                       runat="server" Text="*" ValidationGroup="newItemPhoto" ForeColor="Red" Display="Dynamic" />
                                 </div>
                              </div>
                              <div class="form-group">
                                 <label class="col-lg-4 control-label">
                                    Profile File</label>
                                 <div class="col-lg-8">
                                    <asp:Label runat="server" ID="lblStarProfilePhotoFileName"></asp:Label>
                                    <asp:FileUpload runat="server" ID="fuStarProfilePhotoFileName" />
                                 </div>
                              </div>
                              <div class="form-group">
                                 <label class="col-lg-4 control-label">
                                    State</label>
                                 <div class="col-lg-8">
                                    <asp:DropDownList CssClass="form-control" ID="ddlIsActivePhoto" runat="server">
                                       <asp:ListItem Text="Active" Value="1"></asp:ListItem>
                                       <asp:ListItem Text="Deactivate" Value="0"></asp:ListItem>
                                    </asp:DropDownList>
                                 </div>
                              </div>
                           </div>
                        </div>
                        <div class="button_group">
                           <asp:Button CssClass="btn btn-success" ID="btnSavePhoto" ValidationGroup="newItemPhoto" Text="Save" OnClientClick="BlockInt('Saving data...');"
                              runat="server" OnClick="btnSavePhoto_Click" ClientIDMode="Static" />
                           <asp:Button CssClass="btn btn-info" ID="btnCancelPhoto" Text="Cancel" runat="server" OnClientClick="$('#editDialogPhoto').dialog('close'); return false;"
                              ClientIDMode="Static" />
                        </div>
                     </div>
                  </fieldset>
               </div>
            </div>
         </ContentTemplate>
         <Triggers>
            <asp:PostBackTrigger ControlID="btnSavePhoto" />
         </Triggers>
      </asp:UpdatePanel>
   </div>

    <div id="editDialog">
      <asp:UpdatePanel runat="server" ID="upDetailsScene" OnLoad="upDetailsScene_Load" UpdateMode="Conditional">
         <ContentTemplate>
            <div class="row">
               <div class="fieldset_block col-lg-12 page_area">
                  <fieldset>
                     <legend>
                        <h4>
                           <asp:Label runat="server" ID="lblDialogSceneTitle"></asp:Label>
                        </h4>
                     </legend>
                     <asp:Label runat="server" ID="hdId" Style="display: none;" />
                     <div class="fieldset_content form-horizontal">
                        <div>
                           <div class="col-lg-12">
                              <div class="form-group">
                                 <label class="col-lg-4 control-label">
                                    Title/Description</label>
                                 <div class="col-lg-8">
                                    <asp:TextBox CssClass="form-control" placeholder="Title/Description" ID="txtStarProfileSceneTitle"
                                       ValidationGroup="newItemScene" runat="server" />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="txtStarProfileSceneTitle"
                                       runat="server" Text="*" ValidationGroup="newItemScene" ForeColor="Red" Display="Dynamic" />
                                 </div>
                              </div>
                              <div class="form-group">
                                 <label class="col-lg-4 control-label">Preview Video</label>
                                 <div class="col-lg-8">
                                    <john:CustomFileUpload ID="fuPreviewFileName"  runat="server" />
                                 </div>
                              </div>
                              <div class="form-group">
                                 <label class="col-lg-4 control-label">Preview Image Poster</label>
                                 <div class="col-lg-8">
                                    <asp:Panel runat="server" ID="pnlPoster">
                                        <asp:Label runat="server" ID="lblPoster"></asp:Label>
                                        <a href="javascript:void(0)" onclick="ShowFU('<%= pnlPoster.ClientID %>', '<%= fuPoster.ClientID %>', '<%= hdPoster.ClientID %>')">Delete</a>
                                        <asp:HiddenField runat="server" ID="hdPoster" />
                                    </asp:Panel>
                                    <asp:FileUpload runat="server" ID="fuPoster" />
                                 </div>
                              </div>
                              <div class="form-group">
                                 <label class="col-lg-4 control-label">HD Win Video File</label>
                                 <div class="col-lg-8">
                                    <john:CustomFileUpload ID="fuHDWinFileName"  runat="server" />
                                 </div>
                              </div>
                              <div class="form-group">
                                 <label class="col-lg-4 control-label">LD Win Video File</label>
                                 <div class="col-lg-8">
                                    <john:CustomFileUpload ID="fuLDWinFileName"  runat="server" />
                                 </div>
                              </div>
                              <div class="form-group">
                                 <label class="col-lg-4 control-label">HD QT Video File</label>
                                 <div class="col-lg-8">
                                    <john:CustomFileUpload ID="fuHDQTFileName"  runat="server" />
                                 </div>
                              </div>
                              <div class="form-group">
                                 <label class="col-lg-4 control-label">LD QT Video File</label>
                                 <div class="col-lg-8">
                                    <john:CustomFileUpload ID="fuLDQTFileName"  runat="server" />
                                 </div>
                              </div>
                              <div class="form-group">
                                 <label class="col-lg-4 control-label">
                                    State</label>
                                 <div class="col-lg-8">
                                    <asp:DropDownList CssClass="form-control" ID="ddlIsActive" runat="server">
                                       <asp:ListItem Text="Active" Value="1"></asp:ListItem>
                                       <asp:ListItem Text="Deactivate" Value="0"></asp:ListItem>
                                    </asp:DropDownList>
                                 </div>
                              </div>
                           </div>
                        </div>
                        <div class="button_group">
                           <asp:Button CssClass="btn btn-success" ID="btnSave" ValidationGroup="newItemScene" Text="Save" OnClientClick="BlockInt('Saving data...');"
                              runat="server" OnClick="btnSave_Click" ClientIDMode="Static" />
                           <asp:Button CssClass="btn btn-info" ID="btnCancel" Text="Cancel" runat="server" OnClientClick="$('#editDialog').dialog('close'); return false;"
                              ClientIDMode="Static" />
                        </div>
                     </div>
                  </fieldset>
               </div>
            </div>
         </ContentTemplate>
         <Triggers>
            <asp:PostBackTrigger ControlID="btnSave" />
         </Triggers>
      </asp:UpdatePanel>
    </div>

    <script type="text/javascript">
        Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(function (evt, args) {
            $.datepicker.setDefaults($.datepicker.regional[""]);
            $("#<%= txtDateOfBirth.ClientID %>").datepicker($.datepicker.regional["en-GB"]);

            $("#<%= txtDateOfBirth.ClientID %>").datepicker({
                showmonth: true,
                autoSize: true,
                showAnim: 'slideDown',
                duration: 'fast'
            });
                        
        });
    </script>
</asp:Content>
